﻿using SqlSugar;

namespace WareHouse.Domain
{
    /// <summary>
    /// 审计字段
    /// </summary>
    [SugarTable("AuditInfo")]
    public class AuditInfo : ISoftDelete
    {
        /// <summary>
        /// 添加人ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public long AddId { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ?AddPerson { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime ?AddDate { get; set; }
        /// <summary>
        /// 修改人ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public long ?UpdId { get; set; }
        /// <summary>
        /// 修改人姓名
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ?UpdPerson { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime ?UpdDate { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public bool? IsDel { get; set; } = false;
        /// <summary>
        /// 删除人ID
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public long ?DelId { get; set; }
        /// <summary>
        /// 删除人姓名
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string ?DelPerson { get; set; }
        /// <summary>
        /// 删除时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime ?DelDate { get; set; }
    }
}